package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllconsumer() (error, []models.Consumer, int64) {
	err, consumerData, total := dao.GetAllconsumer()
	return err, consumerData, total
}


func Delconsumer(id int) error {
	err := dao.Delconsumer(id)
	return err
}

func Updateconsumer(consumer models.Consumer) error{
	err:= dao.Updateconsumer(consumer)
	return err
}

func Addconsumer(consumer models.Consumer) (error) {
	err := dao.Addconsumer(consumer)
	return err
}

